package com.yan;

//三角形类
public class Triangle {

    private int a ;//边1

    private  int b;//边2

    private int c;//边3

    public int getA() {
        return a;
    }

    public void setA(int a) {
        this.a = a;
    }

    public int getB() {
        return b;
    }

    public void setB(int b) {
        this.b = b;
    }

    public int getC() {
        return c;
    }

    public void setC(int c) {
        this.c = c;
    }

    public void girth(int a ,int b,int c){
        int C ;//周长
        C = a+b+c;
        System.out.println("三角形的周长为："+C);


    }
}
